Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Find Client by inboxId not address #412

Merged
merged 9 commits into from
Jun 11, 2024
Merged

Conversation

nplasterer
Copy link
Contributor

@nplasterer nplasterer commented Jun 10, 2024

Replaces all the spots we use to store clients by address with inboxId so that we can fetch all of the content correctly going forward even after addresses are removed from an identity.

@nplasterer nplasterer self-assigned this Jun 10, 2024
@nplasterer nplasterer marked this pull request as ready for review June 11, 2024 05:47
@nplasterer nplasterer requested a review from a team as a code owner June 11, 2024 05:47
@alexrisch
Copy link
Contributor

alexrisch commented Jun 11, 2024

Looks good code wise, however my worry is that integrators upgrading to this will have a difficult time updating as address and inboxId are both considered strings, I wonder if we should introduce using a branded type instead to help catch issues of using address/inboxId wrong

type InboxId = string & { readonly brand: unique symbol };

Working Typescript example:
https://www.typescriptlang.org/play/?#code/FAFwngDgpgBAkgOwEYHsAecAmMC8MDOIATgJYIDmMAZDAN4xFQCGmKCANmDEkUwpgC4YAVwQkAjsNj4wAW1TsYAXwDcwYAGM2hGCCiEAgpkyN8+XDABEABjQBGAEwBmACyXN2kLv0hEqDNh4lo6uAKyWMEzmfuhY6loIOgBmohp2FgAULCb6+EKEpBQAlLgAfHTAMFUwCfgo7FAAdOwo5FnGpvhFwEqVMB6JXikIGg6ZZP5YQjEBJTjltH1VtfVNLW0TsZjdvcDDaRl6hh253ft2hz4zWN17qQ6XhNfbdyMPRyBGOWbdQA

@nplasterer nplasterer merged commit 58b4bb0 into beta Jun 11, 2024
5 of 6 checks passed
@nplasterer nplasterer deleted the np/refactor-client-caching branch June 11, 2024 22:32
Copy link
Contributor

🎉 This PR is included in version 1.34.0-beta.10 🎉

The release is available on:

Your semantic-release bot 📦🚀

Copy link
Contributor

🎉 This PR is included in version 2.0.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants